﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Drawing;

namespace System.Drawing
{
    public static class ColorEx
    {
        public static string GetHex(this Color c)
        {
            return String.Format(@"#{0:X2}{1:X2}{2:X2}", c.R, c.B, c.G);
        }
    }
}
